x11: Get Visual from EGL directly
authorBenjamin Otte <otte@redhat.com>
Fri, 18 Jun 2021 12:46:24 +0000 (14:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:23:56 +0000 (16:23 +0200)
commit6d5ba9590b81ef9906a7e93f57c48edb78130f22
tree60bc271f12442edd71681fbbf9e177413b394add
parent215f79285119e861810e794f16dc17c301c06f8f
x11: Get Visual from EGL directly

Query the EGL_VISUAL_ID from the egl Config and select a config with the
matching Visual.

This is currently broken on Mesa because it does not expose any RGBA
X Visuals in any EGL config, so we always end up with opaque Windows.

https://gitlab.freedesktop.org/mesa/mesa/-/issues/149
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-egl.c